<%@ page trimDirectiveWhitespaces="true" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<title>${dimension.name}部门设置</title>
<jsp:include page="../../include/header.jsp" />
</head>
<body class="">
	<div class="breadcrumb">
		<span title="" data-original-title="" class="current"><i class="icon-cog icon-large"></i> ${dimension.name}部门设置</span>
		<input type="hidden" id="rootDepartmentId" value="${department.id}" /> 
		<input type="hidden" id="rootDepartmentName" value="${department.name}" />
	</div>
	<div class="admin-detail-content">
		<div class="breadcrumb">
			<a class="btn btn-success btn-small" id="btnAddDepartment" href="javascript:;">添加下属组织</a>
			<a class="btn btn-danger btn-small" id="btnDeleteDepartment" href="javascript:;">删除</a>
			<a class="btn btn-success btn-small" id="btnAddEmployee" href="javascript:;">新建人员</a>
		</div>
		<div class="row-fluid">
			<div class="span3">
				<select id="dimensions">
				<option value=""></option>
				<c:forEach var="selectitem" items="${dimensions}">
					<option value="${selectitem.id}" <c:if test="${selectitem.id eq dimension.id}">selected</c:if>>${selectitem.name}</option>
				</c:forEach>
				</select>
				<ul id="departmentTreeView" class="ztree">
					
				</ul>
				<br />
				
			</div>
			<div class="span9">
				<div id="departmentEditPanel"></div>
			</div>
		</div>
	</div>
	<div id="modalConfirmDeleteDepartment" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			<h3 id="myModalLabel">对话框</h3>
		</div>
		<div class="modal-body">
			<p>确定删除该菜单?</p>
		</div>
		<div class="modal-footer">
			<button class="btn btn-danger btn-small" id="btnConfirmDeleteDepartment">确定</button>
			<button class="btn btn-success btn-small" data-dismiss="modal" aria-hidden="true">取消</button>
		</div>
	</div>
</body>
</html>
<script>
	base.department.init();	
</script>